import { commonRequest } from '@/api/commonHttp';

// 商品中心 - 修改商品信息 - 批量修改销售区域 - 关联商品|高级关联
export const getSkuInfoForAlignmentSaleAreaService = (data, loadingFn) => commonRequest({
  url: '/sysback/productSupplySaleAreaSku/getSkuInfoForAlignmentSaleArea',
  type: 'post',
  data,
  loadingFn
})

// 商品中心 - 修改商品信息 - 批量修改销售区域 - 商品信息标签提交
export const submitSkuInfoForAlignmentSaleAreaService = (data, loadingFn) => commonRequest({
  url: '/sysback/productSupplySaleAreaSku/submitSkuInfoForAlignmentSaleArea',
  type: 'post',
  data,
  loadingFn
})

// 商品中心 - 修改商品信息 - 批量修改销售区域 - 导出异常数据
export const exportErrorDataForAlignmentSaleAreaService = (data, loadingFn) => commonRequest({
  url: '/sysback/productSupplySaleAreaSku/exportErrorDataForAlignmentSaleArea',
  type: 'post',
  data,
  loadingFn,
  isExport: true
})

// 商品中心 - 修改商品信息 - 批量修改销售区域 - 获取已有进价
export const getSupplySkuCityPurchasePriceForAlignmentSaleAreaService = (data, loadingFn) => commonRequest({
  url: '/sysback/productSupplySaleAreaSku/getSupplySkuCityPurchasePriceForAlignmentSaleArea',
  type: 'post',
  data,
  loadingFn
})

// 商品中心 - 修改商品信息 - 批量修改销售区域 - 提交进价信息
export const commitProductSupplySaleAreaSkuRecordForAlignmentSaleAreaService = (data, loadingFn) => commonRequest({
  url: '/sysback/productSupplySaleAreaSku/commitProductSupplySaleAreaSkuRecordForAlignmentSaleArea',
  type: 'post',
  data,
  loadingFn
})
